<?php
class StringsComponent extends Object {
    var $name = 'Strings';
    
	public $controller;
	public function initialize(&$controller, $settings = array()) {
        // saving the controller reference for later use
        $this->controller =& $controller;
    }
	    //called after Controller::beforeFilter()
    public function startup(&$controller) {
               }
	
    //called after Controller::beforeRender()
    public function beforeRender(&$controller) {
    }
 
    //called after Controller::render()
    function shutdown(&$controller) {
    }
 	//called before Controller::redirect()
    function beforeRedirect(&$controller, $url, $status=null, $exit=true) {
    }
 
    function redirectSomewhere($value) {
        // utilizing a controller method
    }
	
	public function replaceHTMLTag($str, $strReplace = ""){
		$strStripTag = strip_tags($str);
		if($strReplace != ""){
			return str_replace($strReplace,"",$strStripTag);
		}
		return $strStripTag;
	}
	
}
?>